<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @copyright   Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/** @var \Magento\Msrp\Block\Popup $this */
?>
<?php if ($this->isEnabled()): ?>
    <div id="map-popup-click-for-price" class="map popup">
        <div class="popup-header">
            <strong class="title" id="map-popup-heading-price"></strong>
        </div>
        <div class="popup-content">
            <div class="map add form" id="map-popup-content">
                <div class="price-box">
                    <div class="map msrp" id="map-popup-msrp-box">
                        <span class="label"><?php echo __('Price'); ?></span>
                        <span class="old-price" id="map-popup-msrp">
                            <span class="price"></span>
                        </span>
                    </div>
                    <div class="map price" id="map-popup-price-box">
                        <span class="label"><?php echo __('Actual Price'); ?></span>
                        <span id="map-popup-price" class="actual-price"></span>
                    </div>
                </div>
                <form action="" method="POST" id="product_addtocart_form_from_popup" class="form map checkout">
                    <input type="hidden" name="product" class="product_id" value="" id="map-popup-product-id"/>

                    <div class="additional-addtocart-box">
                        <?php echo $this->getChildHtml(); ?>
                    </div>
                    <button type="button" title="<?php echo __('Add to Cart') ?>" class="action tocart"
                            id="map-popup-button">
                        <span><?php echo __('Add to Cart') ?></span>
                    </button>
                </form>
            </div>
            <div class="map text" id="map-popup-text">
                <?php echo $this->getExplanationMessage(); ?>
            </div>
        </div>
    </div>

    <div id="map-popup-what-this" class="map popup">
        <div class="popup header">
            <strong class="title" id="map-popup-heading-what-this"></strong>
        </div>
        <div class="popup content">
            <div class="map help text" id="map-popup-text-what-this">
                <?php echo $this->getExplanationMessageWhatsThis(); ?>
            </div>
        </div>
    </div>
<?php endif; ?>
